package qq.jdbc;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import com.sunkingdom.qq.demo.common.UserController;

public class UnitTestUser {
	@Test
	public void testSelectUser(){
		@SuppressWarnings("resource")
		ApplicationContext ctx = new FileSystemXmlApplicationContext("/WebRoot/WEB-INF/dispatcher-servlet.xml");
		UserController test = ctx.getBean(UserController.class);
		System.out.println(test.selectUser(null));
	}
}
